fix(e2e): topology-rbac and kubernetes-rbac tests in k8s jobs#4656
fix(e2e): topology-rbac and kubernetes-rbac tests in k8s jobs#4656sanketpathak wants to merge 1 commit intoredhat-developer:mainfrom
Conversation
Code Review by Qodo
1. OCP Tekton webhook race
|
|
/test e2e-eks-helm-nightly |
Review Summary by QodoRe-enable kubernetes-rbac and topology-rbac E2E tests
WalkthroughsDescription• Uncomment kubernetes-rbac and topology-rbac E2E tests • Remove test.fixme() skip conditions for non-OpenShift environments • Re-enable previously disabled tests in K8s job pipelines Diagramflowchart LR
A["E2E Tests<br/>Disabled"] -- "Uncomment fixme<br/>conditions" --> B["E2E Tests<br/>Re-enabled"]
C["RHDHBUGS-2817<br/>Issue"] -- "Fix applied" --> B
File Changes1. e2e-tests/playwright/e2e/plugins/kubernetes/kubernetes-rbac.spec.ts
|
b9f2d56 to
bce3f73
Compare
|
/test e2e-aks-helm-nightly |
bce3f73 to
5767ff5
Compare
|
/test e2e-aks-helm-nightly |
5767ff5 to
833598c
Compare
833598c to
588eee7
Compare
588eee7 to
e9180e3
Compare
|
/test e2e-aks-helm-nightly |
|
/test e2e-gke-helm-nightly |
1 similar comment
|
/test e2e-gke-helm-nightly |
| log::info "Waiting for Tekton Pipelines to be ready..." | ||
| k8s_wait::deployment "tekton-pipelines" "tekton-pipelines-webhook" 30 10 || return 1 | ||
| k8s_wait::endpoint "tekton-pipelines-webhook" "tekton-pipelines" 1800 10 || return 1 | ||
| k8s_wait::crd "pipelines.tekton.dev" 120 5 || return 1 |
There was a problem hiding this comment.
these would make sense as part of install_tekton I think
There was a problem hiding this comment.
I did this to make it consistent with the pipeline setup in OCP
Lines 507 to 508 in 9045e7b
There was a problem hiding this comment.
I don't see why waiting for the operator shouldn't be part of the respective install function in either case. Both are always called, then followed by the waits, which is also duplicating code.
If you want to be consistent, merge both install functions with the waits :)
There was a problem hiding this comment.
This is part of waitfor_tekton_pipelines
There was a problem hiding this comment.
I agree with @jrichter1. I'd merge all the installations with the waits to keep it readable, consistent, and easy to understand.
The waitfor_tekton_pipelines was probably orphaned during refactorings.
I recall that at some point, the installation was intentionally split from the waits, so that installation of multiple resources could be triggered, and then we could wait for all of them to be ready. But I don't see much value in that and it's making the scripts overly complicated.
e9180e3 to
74703d2
Compare
|
/test e2e-aks-helm-nightly |
|
/test e2e-gke-helm-nightly |
74703d2 to
e46aa3b
Compare
|
/test e2e-aks-helm-nightly |
|
|
/test e2e-gke-helm-nightly |
|
/agentic_review |
|
Persistent review updated to latest commit e46aa3b |
zdrapela
left a comment
There was a problem hiding this comment.
Nice work! It's cool to see it passing at all the platforms 👍 LGTM
|
/retest |
|
@sanketpathak: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |



Description
Please explain the changes you made here.
Fixing E2E Failures on K8s jobs in topology-rbac and kubernetes-rbac tests
Which issue(s) does this PR fix
https://redhat.atlassian.net/browse/RHDHBUGS-2817
PR acceptance criteria
Please make sure that the following steps are complete:
How to test changes / Special notes to the reviewer